package com.easylinkin.linkappapi.childinspection.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.childinspection.entity.InspectionQrCodeEntity;
import com.easylinkin.linkappapi.childinspection.vo.InspectionQrCodeVo;
import com.easylinkin.linkappapi.childinspection.vo.RelationVo;
import org.apache.ibatis.annotations.Param;

/**
 * @author linWenLe
 * @Date: 2024/4/3
 * @Description:
 */
public interface InspectionQrCodeMapper extends BaseMapper<InspectionQrCodeEntity> {

    IPage<InspectionQrCodeEntity> getList(Page page,@Param("model") InspectionQrCodeVo model);

    String selectMaxCode();

    void cleanRelation(RelationVo relationVo);

    void updateRelation(RelationVo relationVo);

    void updateQrCodeRecord(RelationVo relationVo);

    void insertQrCodeRecord(RelationVo relationVo);

    void updateQrCodeRecordByPointId(String inspectionPointId);


}
